﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DCS.Business.Model
{
    public class ACChangeMessage
    {

        /// <summary>
        /// ACChangeMessage 构造函数
        /// </summary>
        public ACChangeMessage()
        { }


        /// <summary>
        /// ACChangeMessage OR映射构造函数
        /// </summary>
        public ACChangeMessage(System.Data.IDataReader dr)
        {
            this.MessageID = (Guid)dr["MessageID"];
            this.RefSourceID = Convert.ToInt32(dr["RefSourceID"]);
            this.ChangeStartDate = Convert.ToDateTime(dr["ChangeStartDate"]);
            this.ChangeEndDate = Convert.ToDateTime(dr["ChangeEndDate"]);
            this.ChangeDay = Convert.ToString(dr["ChangeDay"]);
            this.FlightNo = Convert.ToString(dr["FlightNo"]);
            this.DeptAirport = Convert.ToString(dr["DeptAirport"]);
            this.ArrAirport = Convert.ToString(dr["ArrAirport"]);
            this.OldModel = Convert.ToString(dr["OldModel"]);
            this.NewModel = Convert.ToString(dr["NewModel"]);
            this.RealReason = Convert.ToString(dr["RealReason"]);
        }


        /// <summary>
        /// 
        /// </summary>
        public Guid MessageID { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public int RefSourceID { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public DateTime ChangeStartDate { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public DateTime ChangeEndDate { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string ChangeDay { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string FlightNo { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string DeptAirport { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string ArrAirport { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string OldModel { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string NewModel { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string RealReason { get; set; }
    }
}
